<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Common\Common;

/**
 * Description of Global
 *
 * @author JiaYao
 */
class UserGlobal {
    //设置用户当前访问url
    
    static public function set_user_currentURL($currentURL) {
	$_SESSION['currentURL'] = $currentURL;
    }
    
    
    
    //检查用户登录状态
    //1 已登录； 0 未登录
    
    static public function check_user_state() {
	//用户未登录
	$user_account = $_SESSION['user_account'];
	if($user_account) {
	    return 1;
	}else{
	    return 0;
	}
    }






    //获取用户当前访问url
    static public function get_user_currentURL() {
	return $_SESSION['currentURL'];
    }    

}
